package com.shasselclub.project.ask.problem.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.shasselclub.framework.aspectj.lang.annotation.Excel;
import com.shasselclub.framework.web.domain.BaseEntity;

/**
 * 问题答案选项对象 t_answer
 * 
 * @author 郑云飞
 * @date 2022-08-05
 */
public class Answer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 问题id */
    @Excel(name = "问题id")
    private Long problemId;

    /** 选项内容 */
    @Excel(name = "选项内容")
    private String title;

    /** 选项得分 */
    @Excel(name = "选项得分")
    private Long score;

    /** 选项序号 */
    @Excel(name = "选项序号")
    private Long titleOrder;

    /** 是否是答案;0:否1：是 */
    @Excel(name = "是否是答案;0:否1：是")
    private Long isAnswer;

    /** 答案解析 */
    @Excel(name = "答案解析")
    private String answerParse;

    /** 删除标志；0：否 1：是 */
    private Long deleteFlg;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProblemId(Long problemId) 
    {
        this.problemId = problemId;
    }

    public Long getProblemId() 
    {
        return problemId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }
    public void setTitleOrder(Long titleOrder) 
    {
        this.titleOrder = titleOrder;
    }

    public Long getTitleOrder() 
    {
        return titleOrder;
    }
    public void setIsAnswer(Long isAnswer) 
    {
        this.isAnswer = isAnswer;
    }

    public Long getIsAnswer() 
    {
        return isAnswer;
    }
    public void setAnswerParse(String answerParse) 
    {
        this.answerParse = answerParse;
    }

    public String getAnswerParse() 
    {
        return answerParse;
    }
    public void setDeleteFlg(Long deleteFlg) 
    {
        this.deleteFlg = deleteFlg;
    }

    public Long getDeleteFlg() 
    {
        return deleteFlg;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("problemId", getProblemId())
            .append("title", getTitle())
            .append("score", getScore())
            .append("titleOrder", getTitleOrder())
            .append("isAnswer", getIsAnswer())
            .append("answerParse", getAnswerParse())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("deleteFlg", getDeleteFlg())
            .toString();
    }
}
